package cz.proks.schoolpupilbook.gae.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import com.google.appengine.api.datastore.Key;

@Entity
public class UserRelationDBO implements IsIndexableDBO{
	private Key id;
	private Key parentKey;
	private Key studentKey;	
	
	public UserRelationDBO() {	
		// TODO Auto-generated constructor stub
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Key getId() {
		return id;
	}
	public void setId(Key id) {
		this.id = id;
	}

	@Basic
	@Column(nullable = false)
	public Key getParentKey() {
		return parentKey;
	}

	public void setParentKey(Key parentKey) {
		this.parentKey = parentKey;
	}
	
	@Basic
	@Column(nullable = false)
	public Key getStudentKey() {
		return studentKey;
	}

	public void setStudentKey(Key studentKey) {
		this.studentKey = studentKey;
	}	
}
